import BackTop from "../components/content/backTop/BackTop";
import CheckButton from "../views/cart/childComp/CheckButton";

export const BackTopMixIn = {
  components:{
    BackTop,
  },
  data(){
    return{
      IsShow: false,
    }
  },
  methods:{
    backTop(){
      this.$refs.Scroll.scrollTo(0,0)
    },
  },
  filters: {
    //保留2位小数点过滤器 不四舍五入
    number(value) {
      let toFixedNum = Number(value).toFixed(3);
      return toFixedNum.substring(0, toFixedNum.toString().length - 1);

    }
  },

}

export const filters = {

  filters: {
    //保留2位小数点过滤器 不四舍五入
    number(value) {
      let toFixedNum = Number(value).toFixed(3);
      return toFixedNum.substring(0, toFixedNum.toString().length - 1);

    }
  },

}

export const checkButton = {
  components:{
    CheckButton,
  },
  data(){
    return {
      isCheck: true
    }
  },

}
